<template>
  <div>
    <van-cell @click="showPopup" :style="color">
      <van-icon
        name="wap-nav"
        style="
          display: inline-block;
          margin-right: 0.22rem;
          font-size: 0.42rem;
        "
    /></van-cell>
    <van-popup
      v-model="show"
      position="left"
      :style="{ height: '100%', width: '80%' }"
    >
      <Sidebar />
    </van-popup>
  </div>
</template>

<script>
import Sidebar from "../index/sidebar.index.vue";
export default {
  props: ["color"],
  data() {
    return {
      show: false,
    };
  },
  methods: {
    showPopup() {
      this.show = true;
    },
  },
  components: {
    Sidebar,
  },
};
</script>

<style lang="less" scoped>
.van-cell__value {
  overflow: visible;
  z-index: 2000;
}
.van-cell {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  box-sizing: border-box;
  width: auto;
  padding: 0;
  overflow: visible;
  color: #323233;
  font-size: 0.42rem;
  line-height: 24px;
}
</style>